#ifndef FRIENDINFOPAGE_H
#define FRIENDINFOPAGE_H

#include <QWidget>
#include "userdata.h"
#include <memory>
namespace Ui {
class FriendInfoPage;
}

class FriendInfoPage : public QWidget
{
    Q_OBJECT

public:
    explicit FriendInfoPage(QWidget *parent = nullptr);
    ~FriendInfoPage();
    void setFriendInfo(std::shared_ptr<FriendInfo>);

private:
    Ui::FriendInfoPage *ui;
    std::shared_ptr<FriendInfo> _friendInfo;
private slots:
    void slot_messageBtnClicked();
    void slot_videoBtnClicked();
    void slot_speechBtnClicked();
signals:
    void sig_messageBtnClicked(std::shared_ptr<FriendInfo>);
    void sig_videoBtnClicked(std::shared_ptr<FriendInfo>);
    void sig_speechBtnClicked(std::shared_ptr<FriendInfo>);
    // QWidget interface
protected:
    virtual void paintEvent(QPaintEvent *event) override;
};

#endif // FRIENDINFOPAGE_H
